const promise = new Promise(function (resolve, reject) {
    resolve();
    console.log("123")
});
promise.then(e => {
    console.log("Hi");
}, err => {
    console.log("catch");
})